package com.moliku.insurance.model.dto;

import com.moliku.insurance.model.validation.Update;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotBlank;
import java.io.Serializable;

/**
 * 示例 提交参数
 *
 * @author Mr.Liu
 * @since 2021/2/1
 */
@Data
public class DemoDTO implements Serializable {
    private static final long serialVersionUID = -5677861914700604323L;
    @ApiModelProperty(value = "id")
    private Long id;

    @ApiModelProperty(value = "标题")
    @NotBlank(message = "标题不能为空")
    private String title;

    @ApiModelProperty(value = "测试1")
    @NotBlank(message = "测试1不能为空", groups = {Update.class})
    private String test1;
}
